package groovypublish

class Comment implements Comparable {

    static belongsTo = Post

    Post title
    String comment
    Date dateCreated

    public int compareTo(Object o) {
        return dateCreated.compareTo(o.dateCreated)
    }
}
